import { http } from '@/utils/http'

export function usePmPromotionInfoApi() {
  return {
    // 获得项目推进
    getPromotion(id: string) {
      return http.get('/prod-api/admin-api/project/promotion/get?id=' + id)
    },
    // 获得项目推进分页
    getPromotionPage(query: any) {
      return http.get<{
        list: PmPromotionForm[]
        total: number
      }>('/prod-api/admin-api/project/promotion/page', query)
    }
  }
}
